package com.djz.stuinfomge.util;

import java.util.Calendar;
import java.util.Date;

import org.junit.Test;

/**
 * 
 */

/**
 * @author "shigangxing"
 * 2010-12-8
 *
 */
public class PreDay {
    //此种方式对于2月这种情形，可正确处理
    public static Date process() {
	Calendar c = Calendar.getInstance();
	c.set(Calendar.DAY_OF_MONTH, c.get(Calendar.DAY_OF_MONTH) - 1);
	return c.getTime();
    }
      
}
